package com.zhudeshuai.zhudemolist.activity;

import android.os.Bundle;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.zhudeshuai.zhudemolist.R;
import com.zhudeshuai.zhudemolist.base.BaseActivity;

/**
 * gif加载
 */
public class GlideGifActivity extends BaseActivity {

	private ImageView mImageView;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_glide_gif);
		mImageView = (ImageView) findViewById(R.id.iv);

		Glide.with(this).load(R.drawable.test).asGif().diskCacheStrategy(DiskCacheStrategy.ALL).into(mImageView);
	}
}
